<?php
/****************************************************
 * $Date:: Jun 15, 2010 6:43:14 AM					*
 * $Revision:										*
 * $Author:: duongthienduc							*
 * $Comment::										*
****************************************************/

class Bet_Form_User_Add extends Zend_Form {

	public function init()
	{
		$this->setMethod('post');

		$this->addElement(
            'text', 'username', array(
                'label' => 'Username:',
                'required' => true,
                'filters'    => array('StringTrim'),
		));

		$this->addElement('password', 'password', array(
            'label' => 'Password:',
            'required' => true,
			'filters'    => array('StringTrim')
		));

		$this->addElement('password', 'password2', array(
            'label' => 'Confirm Password:',
            'required' => true,
			'filters'    => array('StringTrim')
		));

		$this->addElement(
            'text', 'full_name', array(
                'label' => 'Fullname:',
                'filters'    => array(new Zend_Filter_Alnum(true), 'StringTrim'),
		));

		$this->addElement(
            'text', 'birthday', array(
                'label' => 'Birthday:',
                'filters'    => array('StringTrim'),
		));

		$this->addElement(
            'text', 'cid', array(
                'label' => 'Cid:',
                'filters'    => array('StringTrim'),
		));

		$this->addElement(
            'select', 'gender', array(
                'label' => 'Gender:',
                'multiOptions' => array(
		        '1' => 'Male',
		        '2' => 'Female',)
		));

		$this->addElement(
            'text', 'address', array(
                'label' => 'Address:',
                'filters'    => array('StringTrim'),
		));

		$this->addElement(
            'text', 'City', array(
                'label' => 'Address:',
                'filters'    => array('StringTrim'),
		));

		$this->addElement(
            'text', 'nationality', array(
                'label' => 'Country:',
                'filters'    => array('StringTrim'),
		));

		$this->addElement(
            'text', 'education', array(
                'label' => 'Education:',
                'filters'    => array('StringTrim'),
		));

		$this->addElement(
            'text', 'phone', array(
                'label' => 'Phone:',
                'filters'    => array('StringTrim'),
		));

		$this->addElement(
            'text', 'cell_phone', array(
                'label' => 'Cell phone:',
                'filters'    => array('StringTrim'),
		));

		$this->addElement('submit', 'submit', array(
            'ignore'   => true,
            'label'    => 'Add',
		));
	}

}

?>